package request1_p2p;

import java.util.Observable;

/**
 * @ClassName OrderDispatch
 * @Description TODO
 * @Author MaQingpin
 * @Date 2020/11/5 9:33
 * @Version 1.0
 */
public class MOrderPublisher extends Observable {
    public Merchant merchant;

    public MOrderPublisher(Merchant merchant){
        this.merchant=merchant;
    }

    public Merchant getMerchant() {
        return merchant;
    }

    public void setMerchant(Merchant merchant) {
        this.merchant = merchant;
    }

    public void dispatch(COrderEvent cOrderEvent){
        setChanged();
        notifyObservers(cOrderEvent);
    }
}
